# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=bandwhich
pkgver=0.20.0
pkgrel=0
pkgdesc="Terminal bandwidth utilization tool"
url="https://github.com/imsnif/bandwhich"
# s390x and riscv64 blocked by cargo/rust
arch="all !s390x !riscv64"
license="MIT"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/imsnif/bandwhich/archive/$pkgver.tar.gz"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm755 target/release/bandwhich "$pkgdir"/usr/bin/bandwhich
}

sha512sums="3bd5cc4166514feb601eb921ef3fbad08b8e9787aad1bb0c8a9543207631964ffc14cc1488e96ef4319bb1a20c5f684b744facd2a6cf1d9ef6dd5d2fefc524cb  bandwhich-0.20.0.tar.gz"
